<footer class="footer">
  <p>Copyright © <span class="footer-year"></span> Apple Inc. All rights reserved.</p>
  <script>
    document.querySelector('.footer-year').textContent = new Date().getFullYear();
  </script>
</footer>
